package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.KnowledgeFood;

/**
 * 知识库-膳食库DAO
 */
public interface KnowledgeFoodDao {
    //根据膳食编码查询数量
    public long findCountByCode(String code);

    //根据膳食编码编辑膳食数据
    public void editById(KnowledgeFood knowledgeFood);

    //新增膳食数据
    public void add(KnowledgeFood knowledgeFood);

    //分页查询膳食数据
    public Page<KnowledgeFood> selectByCondition(String queryString);

    //删除膳食数据
    public void deleteById(Integer id);

    //根据id查询膳食信息
    public String findById(Integer foodId);
}
